//
//  ProfileEditViewController.h
//  XPhoto
//
//  Created by baboy on 2020/4/19.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "User.h"

NS_ASSUME_NONNULL_BEGIN
@protocol ProfileEditDelegate;

@interface ProfileEditViewController : UIViewController
@property(nonatomic, strong) User *user;
@property(nonatomic, strong) IBOutlet UITableView *tableView;
@property(nonatomic, assign) id<ProfileEditDelegate> delegate;
@property(nonatomic, assign) BOOL editPropertySingly; //YES:一个一个编辑，NO:编辑完之后统一提交
@property(nonatomic, strong) NSMutableDictionary *updatedUserInfo;
@end
@protocol ProfileEditDelegate <NSObject>

@optional
- (BOOL)profileEditViewControllerShouldCancel:(ProfileEditViewController *)vc;
- (BOOL)profileEditViewControllerShouldFinished:(ProfileEditViewController *)vc;

@end
NS_ASSUME_NONNULL_END
